package net.wofly.cashier.dishes.service;

import java.util.List;

import net.wofly.cashier.dishes.domain.DailyCommodityNum;

public interface IDailyCommodityNumService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	public DailyCommodityNum save(DailyCommodityNum entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	public void delete(DailyCommodityNum entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	public void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	public DailyCommodityNum findOne(String key);
	
	public List<DailyCommodityNum> save(List<DailyCommodityNum> entityList) ;
	
	DailyCommodityNum findByCommodityIDAndSetDate(String commodityID,Long setDate);

}
